from api.login_api import LoginApi


def get_headers(mobile="13800000002", password="123456"):
    """登录，返回包含令牌信息的请求头"""
    body = {"mobile": mobile, "password": password}
    resp = LoginApi.login(body)
    token = "Bearer " + resp.json().get("data")
    headers = {
        "Authorization": token
    }
    return headers